﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ContextMenuStrip控件使用
{
    public partial class ContextMenuStrip : Form
    {
        public ContextMenuStrip()
        {
            InitializeComponent();
        }

        private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
        {

        }

        private void ContextMenuStrip_Load(object sender, EventArgs e)
        {

        }

        private void 打开窗体ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ContextMenuStrip menuForm = new ContextMenuStrip();
            menuForm.Show();
        }

        private void 关闭窗体ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
